package com.menhai.personmanagement.services;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.menhai.personmanagement.entity.UaOpinion;
import com.menhai.personmanagement.entity.co.UaOpinionCo;
import com.menhai.personmanagement.mapper.UaOpinionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 意见反馈 服务类
 * </p>
 *
 * @author shikun
 * @since 2022-07-20
 */
 @Service
public class IUaOpinionService{

   @Autowired
   private UaOpinionMapper uaOpinionMapper;


    public IPage<UaOpinion> selectByList(UaOpinionCo uaOpinionCo) {
        Page<UaOpinion> page = new Page<>(uaOpinionCo.getPageIndex(), uaOpinionCo.getPageSize());
        return uaOpinionMapper.selectByList(page, uaOpinionCo);
    }

    public UaOpinion selectById(UaOpinionCo uaOpinionCo) {
        return uaOpinionMapper.selectById(uaOpinionCo);
    }

}
